from fastapi import APIRouter


# 实例化 APIRouter 实例
router = APIRouter(tags=["默认路由"])


# 注册具体方法
@router.get("/")
async def index():
    """
    默认访问链接
    :return:
    """
    return {
        "code":200,
        "msg": "Hello World!"
    }